<template>
  <div>
    <CartgroySelect :disabled="!isShow" />
    <AttrList v-if="isShow" @setIsshowAttrList="isShow = $event" />
    <AddOrUpdateAttr v-else @gobackAttrList="isShow = $event" />

    <!-- <AddOrUpdateAttr1 v-else @gobackAttrList="isShow = $event" /> -->
  </div>
</template>

<script lang="ts">
export default {
  name: "CAttr",
};
</script>

<script lang="ts" setup>
import CartgroySelect from "@/components/CartgroySelect/index.vue";
import AttrList from "./compontents/attr-list.vue";
import AddOrUpdateAttr from "./compontents/add-or-update-attr.vue";
// import AddOrUpdateAttr1 from "./originData/add-or-update-attr.vue";
import { ref } from "vue";

const isShow = ref(true);
</script>

<style scoped></style>
